﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FinalProject.Entities;
using FinalProject.Data.Search;

namespace FinalProject.Services.Interfaces
{
    public interface IUserService
    {
        PagedListResult<User> GetAll();
        User GetById(int id);
        User GetByName(string name);
        void Create(User entity);
        void Update(User entity);
        void Delete(int id);
        void Save();

        User GetUserWithRoles(int id);
        User GetUserWithRoles(string name);

        User GetUserWithRolesAndUserDetails(int id);

        void Update(User user, ICollection<UserRole> iCollection);
    }
}
